package com.orange.common.validation.annotation;


import com.orange.common.validation.annotation.impl.StrictIDValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 自定义校验业务ID
 *
 * @Author YWF
 * @Date 2025/5/8 17:19
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = StrictIDValidator.class)
public @interface StrictID {

    String message() default "请输入有效的业务ID";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
